import type { RouteRecordRaw } from 'vue-router'
import { BorderlessIcon } from '@/components/Icon'

const loadingRoutes: RouteRecordRaw[] = [
  {
    path: '/demo',
    name: 'DemoName',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: 'Loading 演示',
      icon: BorderlessIcon
    },
    children: [
      {
        path: '',
        name: 'LoadingDemo',
        component: () => import('@/views/Demo/LoadingDemo.vue'),
        meta: {
          title: 'Loading 演示'
        }
      },
      {
        path: 'user',
        name: 'SystemUser',
        component: () => import('@/views/system/user/index.vue'),
        meta: {
          title: 'Loading 演示'
        }
      }
    ]
  }
]

export default loadingRoutes
